package com.PictureSite.model;

import com.google.appengine.api.blobstore.BlobKey;
import com.google.appengine.api.files.AppEngineFile;

public class UserPost {
	
	private String title;

	private String userName;
	
	private String datePosted;
	
	private String pictureLink;
	
	private int likes;
	
	private String blobId;

	public String getBlobId() {
		return blobId;
	}

	public void setBlobId(String string) {
		this.blobId = string;
	}
	
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getDatePosted() {
		return datePosted;
	}

	public void setDatePosted(String string) {
		this.datePosted = string;
	}

	public String getPictureLink() {
		return pictureLink;
	}

	public void setPictureLink(String pictureLink) {
		this.pictureLink = pictureLink;
	}

	public int getVotes() { return likes; }
	
	public void upvote() { likes += 1; }
	
	public void downvote() { likes -= 1; }
	
	
}
